public class LgicalOperators {

	public static void main(String[] args) {

		/**
		 * && is AND operator 
		 * || is OR operator 
		 * ! NOT operator
		 *  > greater
		 *   >= greater then OR equal to 
		 *   < less then 
		 *   <= less then OR equal to
		 *  ==  equal to
		 */

		int intrestRate = Integer.valueOf(args[0]).intValue();
		boolean isGovtApproved = true;
		float principleAmpunt = 10000;
		
		 
		

		if (intrestRate > 10 && isGovtApproved ) {
			
			
			System.out
					.println("Interest rate is higher then market rate and Govt Approved, no dividend"
							+ (principleAmpunt * intrestRate) / 100);

		}

		else if(intrestRate == 10 && isGovtApproved)
		{
			System.out.println("Interest rate is as per market , dividend is 50 RS : "+(principleAmpunt*intrestRate/100+50));
		}
		else 

		{
			System.out.println(" Inside Else .... we are giving intrest rate as 5%   Interest Rate and adding  100 RS dividend   : "
					+ (((principleAmpunt * 5) / 100) + 100));

		}
		 
		 System.out.println("Out of Control statments .......");

	}

}
